package com.ycu.service.impl;

/**
 * @author ：lzn
 * @date ：Created in 2020/9/24 1:13
 * @description：
 * @modified By：
 * @version: $
 */
import com.ycu.mapper.UmsAdminDao;
import com.ycu.model.UmsAdmin;
import com.ycu.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private UmsAdminDao adminDao;

    @Override
    public UmsAdmin login(UmsAdmin umsAdmin) {
        return this.adminDao.selectByUsernameAndPassword(umsAdmin);
    }
}
